import pytest
from selenium.webdriver.common.by import By
from selenium import webdriver
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
from time import sleep



base_url=('https://www.baidu.com/')
class TestDemo:
    def setup_method(self):
        self.driver = webdriver.Chrome()
        self.driver.maximize_window()

    def teardown_method(self):
        sleep(10)
        self.driver.quit()
    def test_baidu(self):
        self.driver.get(base_url)







